Laravel polimorfic faker

35

$comments = Comment::factory()->count(3)->for(
    Video::factory(), 'commentable'
)->create();
$video = Video::factory()->hasComments(3)->create();

Comments

Submit
0 Comments